#include "GameState.h"
#include "HeartHolder.h"

enum gamestate {
	title = 1,
	running = 2,
	paused = 3,
	killed = 4,
	won = 5,
	gameover = 6
};

enum gamestate GameState::gameState;

void GameState::GameStateInit(void) {
	gameState = title;
}

enum gamestate GameState::GetState(void) {
	return gameState;
}

bool GameState::isTitle(void) {
	return gameState == title;
}

bool GameState::isRunning(void) {
	return gameState == running;
}

bool GameState::isPaused(void) {
	return gameState == paused;
}

bool GameState::isKilled(void) {
	return gameState == killed;
}

void GameState::makeRunning(void) {
	gameState = running;
}

void GameState::makePaused(void) {
	gameState = paused;
}

void GameState::makeKilled(void) {
	gameState = killed;
}

void GameState::PlayerWin() {
	gameState = won;
}

void GameState::GameOver() {
	gameState = gameover;
}